google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-02-25',null,null,null,null,null], ['2024-02-26',5695853,null,null,null,null], ['2024-02-27',5695853,null,null,null,null], ['2024-02-28',5696173,null,null,null,null], ['2024-02-29',5696655,null,null,null,null], ['2024-03-01',5697045,null,null,null,null], ['2024-03-02',5697392,null,null,null,null], ['2024-03-03',5697713,null,null,null,null], ['2024-03-04',5698000,null,null,null,null], ['2024-03-05',5698517,null,null,null,null], ['2024-03-06',5698769,null,null,null,null], ['2024-03-07',5699138,null,null,null,null], ['2024-03-08',5699616,null,null,null,null], ['2024-03-09',5699887,null,null,null,null], ['2024-03-10',5700219,null,null,null,null], ['2024-03-11',5700987,null,null,null,null], ['2024-03-12',5701446,null,null,null,null], ['2024-03-13',5701770,null,null,null,null], ['2024-03-14',5701770,null,null,null,null], ['2024-03-15',5701770,null,null,null,null], ['2024-03-16',5701770,null,null,null,null], ['2024-03-17',5702572,null,null,null,null], ['2024-03-18',5702842,null,null,null,null], ['2024-03-19',5703369,null,null,null,null], ['2024-03-20',5703665,null,null,null,null], ['2024-03-21',5704006,null,null,null,null], ['2024-03-22',5704273,null,null,null,null], ['2024-03-23',5704791,null,null,null,null], ['2024-03-24',5705071,null,null,null,null], ['2024-03-25',5705293,null,null,null,null], ['2024-03-26',5705854,null,null,null,null], ['2024-03-27',5705854,null,null,null,null], ['2024-03-28',5706824,null,null,null,null], ['2024-03-29',5706997,null,null,null,null], ['2024-03-30',5707248,null,null,null,null], ['2024-03-31',5707248,null,null,null,null], ['2024-04-01',5708519,null,null,null,null], ['2024-04-02',5708519,null,null,null,null], ['2024-04-03',5709253,null,null,null,null], ['2024-04-04',5709525,null,null,null,null], ['2024-04-05',5709525,null,null,null,null], ['2024-04-06',5709881,null,null,null,null], ['2024-04-07',5710191,null,null,null,null], ['2024-04-08',5710811,null,null,null,null], ['2024-04-09',5711033,null,null,null,null], ['2024-04-10',5711450,null,null,null,null], ['2024-04-11',5711745,null,null,null,null], ['2024-04-12',5712053,null,null,null,null], ['2024-04-13',5712379,null,null,null,null], ['2024-04-14',5712638,null,null,null,null], ['2024-04-15',5712904,null,null,null,null], ['2024-04-16',5713425,null,null,null,null], ['2024-04-17',5713425,null,null,null,null], ['2024-04-18',5719087,null,null,null,null], ['2024-04-19',5720811,null,null,null,null], ['2024-04-20',5724220,null,null,null,null], ['2024-04-21',5726287,null,null,null,null], ['2024-04-22',5733003,null,null,null,null], ['2024-04-23',5734184,null,null,null,null], ['2024-04-24',5734871,null,null,null,null], ['2024-04-25',5735418,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });